package com.net.xpay.core.model;

import com.net.xpay.core.enums.PayeeType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@NoArgsConstructor
public class SafePayBatchCreateModel extends OpenBaseModel {

    @ApiModelProperty(notes = "应用id")
    private Long appId;

    @ApiModelProperty(notes = "收款类型 1.支付宝  2.银行 默认支付宝1")
    private PayeeType type;

    @ApiModelProperty(notes = "付款方支付宝账号")
    private String alipayNickName;

    @ApiModelProperty(notes = "导入的商户的批次号 必选")
    private String importBatchNo;

    @ApiModelProperty(notes = "批次总金额，单位为元，精确到小数点后两位，取值范围[0.01,9999999999999.99]  必选")
    private String totalTransAmount;

    @ApiModelProperty(notes = "批次总笔数 10 必选")
    private Long totalCount;

    @ApiModelProperty(notes = "是否需要推送")
    private Boolean needNotify;

    @ApiModelProperty(notes = "推送地址 长度不超过255")
    private String notifyUrl;

    @ApiModelProperty(notes = "创建的同时直接确认，适合不需要用验证码验证的")
    private Integer confirmTrans;

    @ApiModelProperty(notes = "打款明细")
    private List<SafePayTransModel> payTrans;

    //额外参数
    @ApiModelProperty(notes = "安全付批量转账是否需要短信验证")
    private Boolean batchEnsure = false;

}
